package com.xs.aifitnessagent.entities.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.ai.chat.messages.Message;

import java.util.List;

/**
 * 聊天消息返回体
 *
 * @author lambor
 */
@Data
@NoArgsConstructor
public class MessageVo {

    private String title;

    private List<Message> messages;

    /** 包含详细信息的消息列表 */
    private List<MessageDetailVo> detailMessages;

    // 原有构造函数（兼容性）
    public MessageVo(String title, List<Message> messages) {
        this.title = title;
        this.messages = messages;
    }

    // 新的构造函数（支持详细消息）
    public MessageVo(String title, List<Message> messages, List<MessageDetailVo> detailMessages) {
        this.title = title;
        this.messages = messages;
        this.detailMessages = detailMessages;
    }
}
